<style>
	.element_right
	{
		float:right;
		width:175px;
	}
</style>
<div class="row">
<div class="panel callout"><h6>Manage Employees Grade Level Access</h6></div>
	
	<table class="responsive" style="min-width:100%">
		<tr style="border-bottom:#000 1px solid;">
			<td>User Name</td><td>Last Name</td><td>First Name</td><td>Middle Name</td><td>Role</td><td>Grade Level</td><td></td></tr>
		<?php
		if($emp_user_data){
		foreach($emp_user_data as $empuserdata):
		?>
		<tr>
				<td><?php echo $empuserdata->username; ?></td>
				<td><?php echo strtoupper($empuserdata->last_name); ?></td>
				<td><?php echo ucfirst($empuserdata->first_name); ?></td>
				<td><?php echo ucfirst($empuserdata->middle_name); ?></td>
				<td><?php echo ucfirst($empuserdata->role); ?></td>
				<td><?php
						if($access_levels):
						foreach($access_levels as $accesslevel):
							if($empuserdata->emp_id == $accesslevel->emp_id)
							{
								echo $accesslevel->level_desc.'<br />';
							}
						endforeach;
						endif;
					?></td>
				<td align="center"><a href="<?php echo site_url();?>employee_settings/edit_manage_employees_access/<?php echo $empuserdata->emp_id;?>">edit</a></td>
		</tr>
		<?php
		endforeach;
		}else{
		?>
		<tr>
			<td colspan="7">Create Vice Principal account.</td>
		</tr>
		<?php
		}
		?>
	</table>
	
</div>